<?php

namespace App\Model;
use App\Common\Exception\ThrowException;

/**
 * 留言列表
 * Class InfoAdv
 * @package App\Model
 */
class  InfoMessage extends BaseModel
{
    public function changeStatus($data){
        if ($this->editData($this->analysisWhere(['id'=>$data['id']]),["status" => $data['status']])) {
            return  [];
        } else {
            throw  new ThrowException(ThrowException::EROOR_MEMBER_CHANGE_STATUS);
        }
    }
}